win32: close the screen when disposing the display
authorPaolo Borelli <pborelli@gnome.org>
Sun, 28 Feb 2016 14:33:28 +0000 (15:33 +0100)
committerPaolo Borelli <pborelli@gnome.org>
Sun, 28 Feb 2016 14:53:52 +0000 (15:53 +0100)
gdk/win32/gdkdisplay-win32.c

index 26329d514519362cc3ddd8b610834418a2a3189a..b4e8ff3bf5bda80675fd9fbcfcb05ad4183fb4e8 100644 (file)
@@ -628,6 +628,8 @@ gdk_win32_display_dispose (GObject *object)
 {
   GdkWin32Display *display_win32 = GDK_WIN32_DISPLAY (object);
 
+  _gdk_screen_close (display_win32->screen);
+
   if (display_win32->hwnd != NULL)
     {
       DestroyWindow (display_win32->hwnd);